import type { App, Component } from 'vue'
import Svg from './svg/index.vue'

const components: Record<string, Component> = {
    Svg
}

export default {
    install(app: App) {
        Object.keys(components).forEach(key => {
            app.component(key, components[key])
        })
    }

    // import.meta.glob 匹配components目录下所有.vue文件, 实现自动化注册
}